package com.hospital.endescryption.config.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 医保参数设置
 */
@Configuration
@Data
@NoArgsConstructor
@AllArgsConstructor
public class InsurProperties {

    /**
     * 签名方式
     */
    @Value("${insuranceconfig.signType}")
    private String signType;

    /**
     * 加密类型
     */
    @Value("${insuranceconfig.encryptType}")
    private String encryptType;
    /**
     * 接口版本
     */
    @Value("${insuranceconfig.version}")
    private String version;

    /**
     * HIS的签名方式
     */
    @Value("${insuranceconfig.singTypeHis}")
    private String singTypeHis;
    /**
     * 采用HTTPS或HTTP  对接时将会分配专用的应用ID与对应秘钥
     */
    @Value("${insuranceconfig.appIdHis}")
    private String appIdHis;
    /**
     * 应用key
     */
    @Value("${insuranceconfig.appSecretHis}")
    private String appSecretHis;

    @Value("${insuranceconfig.appIdInsur}")
    private String appIdInsur;

    /**
     * 应用key
     */
    @Value("${insuranceconfig.appSecretInsur}")
    private String appSecretInsur;

    /**
     * 定点机构私钥
     */
    @Value("${insuranceconfig.hisPriKey}")
    private String hisPriKey;
    /**
     * 平台公钥
     */
    @Value("${insuranceconfig.insurPubKey}")
    private String insurPubKey;

    @Value("${insuranceconfig.insurPushUrl}")
    private String insurPushUrl;

    @Value("${insuranceconfig.orderSureUrl}")
    private String orderSureUrl;

}
